<template>
  <div class="view-header">
    <el-select v-model="idList" multiple>
      <el-option value="1" label="sdf"></el-option>
      <el-option value="2" label="gfgf"></el-option>
      <el-option value="3" label="vbnvb"></el-option>
      <el-option value="4" label="ll;l;"></el-option>
    </el-select>
    {{idList}}
    <el-button @click="qqq">sdfs</el-button>
  </div>
</template>

<script>
  import testAPI from '@/api/test'
export default {
  name: 'TestList',
  data() {
    return {
      idList:[]
    }
  },
  created(){
  },
  destroyed(){
  },
  methods: {
    qqq(){
      this.idList = [1,2].map(val=>{
        return val.toString()
      })
    }
  }
}
</script>

<style lang="scss">

</style>

<style scoped lang="scss">
  .view {
    background-color: #eee;
    color:orangered;
  }
</style>
